#include "Filter.h"
#include "RegExFilter.h"

std::auto_ptr<IFilter> IFilter::Create(FilterType type, const std::string & data)
{
	std::auto_ptr<IFilter> result;
	switch (type)
	{
	case FT_REGEX:
		result.reset(new RegExFilter(data));
		break;
	}
	return result;
}